# Contributor: Sam Nystrom <sam@samnystrom.dev>
# Maintainer: Sam Nystrom <sam@samnystrom.dev>
pkgname=seaward
pkgver=1.0.1
pkgrel=0
pkgdesc="Crawler which searches for links or a specified word in a website"
url="https://github.com/M3nny/seaward"
# s390x: nix crate
arch="all !s390x"
license="MIT"
makedepends="cargo cargo-auditable openssl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/M3nny/seaward/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

prepare() {
	default_prepare
	# no lock
	cargo fetch --target="$CTARGET"
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -Dm755 target/release/seaward -t "$pkgdir"/usr/bin/
}

sha512sums="
efc3ea8af2ffb86df416cd30229dcc774180e8f01767ef0538effd163aab4325a506c02af55fc463c5edf1903d159a9fd4253d79b4bc789add7bae822609fecc  seaward-1.0.1.tar.gz
"
